package com.boolib.animate.commons.base.face;


import com.github.pagehelper.PageInfo;

import java.util.List;


/**
 * @author nier
 * @create 2020-02-19 17:58
 */

public interface BaseSqlQueryService<T> {


     T queryOne(T t);
     T queryOneThrow(T t);

     T queryById(Long id);

    T queryByIdThrow(Long id);

    List<T> query(T t);

     List<T> queryAll();

     List<T> queryByIds(List<Long> ids);

     PageInfo<T> queryByRowBounds(T t, Integer page, Integer size);

     Integer queryCount(T t);

     boolean  existsById(Long id);
}
